package com.zeei.app.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONObject;
import com.zeei.app.service.PointMonitorService;
import com.zeei.app.vo.PointMonitorVO;
import com.zeei.common.controller.BasicController;
import com.zeei.common.vo.ResultDataVO;

/**
 * @类型名称：PointMonitorController
 * @类型描述：排口实时监控Controller
 * @功能描述：生命周期---排口实时监控
 * @创建作者：meng.jy
 * @创建时间: 2018年1月28日
 */
@Controller("appPointMonitorController")
@RequestMapping("/app/monitor")
public class PointMonitorController extends BasicController {

	@Autowired
	@Qualifier("appPointMonitorServiceImpl")
	private PointMonitorService pointMonitorService;

	/**
	 * queryAutoMonitorByHours: 排口实时监控曲线
	 *
	 * @param PointMonitorVO
	 * @return ResultRowsVO<JSONObject>
	 */
	@RequestMapping(value = "/autoMonitorline", method = RequestMethod.POST)
	@ResponseBody
	public ResultDataVO<JSONObject> queryAutoMonitorByHours(PointMonitorVO vo) {

		JSONObject retJson = this.pointMonitorService.queryAutoMonitorByHours(vo);
		return this.createResultDataVO(retJson, true, null);
	}
}
